Optimal. Leaf size=25 \[ \frac{\tanh ^{-1}\left (\frac{\tanh (x)}{\sqrt{2}}\right )}{2 \sqrt{2}}+\frac{\coth (x)}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0169727, antiderivative size = 25, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3, Rules used = {3209, 388, 206} \[ \frac{\tanh ^{-1}\left (\frac{\tanh (x)}{\sqrt{2}}\right )}{2 \sqrt{2}}+\frac{\coth (x)}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3209
Rule 388
Rule 206
Rubi steps
\begin{align*} \int \frac{1}{1-\cosh ^4(x)} \, dx &=\operatorname{Subst}\left (\int \frac{1-x^2}{1-2 x^2} \, dx,x,\coth (x)\right )\\ &=\frac{\coth (x)}{2}+\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{1-2 x^2} \, dx,x,\coth (x)\right )\\ &=\frac{\tanh ^{-1}\left (\frac{\tanh (x)}{\sqrt{2}}\right )}{2 \sqrt{2}}+\frac{\coth (x)}{2}\\ \end{align*}
Mathematica [A] time = 0.10027, size = 24, normalized size = 0.96 \[ \frac{1}{4} \left (\sqrt{2} \tanh ^{-1}\left (\frac{\tanh (x)}{\sqrt{2}}\right )+2 \coth (x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.017, size = 100, normalized size = 4. \begin{align*}{\frac{1}{4}\tanh \left ({\frac{x}{2}} \right ) }+{\frac{1}{4} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{-1}}+{\frac{\sqrt{2}}{16}\ln \left ({ \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+\sqrt{2}\tanh \left ({\frac{x}{2}} \right ) +1 \right ) \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}-\sqrt{2}\tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}} \right ) }-{\frac{\sqrt{2}}{16}\ln \left ({ \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}-\sqrt{2}\tanh \left ({\frac{x}{2}} \right ) +1 \right ) \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+\sqrt{2}\tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.68216, size = 61, normalized size = 2.44 \begin{align*} -\frac{1}{8} \, \sqrt{2} \log \left (-\frac{2 \, \sqrt{2} - e^{\left (-2 \, x\right )} - 3}{2 \, \sqrt{2} + e^{\left (-2 \, x\right )} + 3}\right ) - \frac{1}{e^{\left (-2 \, x\right )} - 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.1641, size = 382, normalized size = 15.28 \begin{align*} \frac{{\left (\sqrt{2} \cosh \left (x\right )^{2} + 2 \, \sqrt{2} \cosh \left (x\right ) \sinh \left (x\right ) + \sqrt{2} \sinh \left (x\right )^{2} - \sqrt{2}\right )} \log \left (-\frac{3 \,{\left (2 \, \sqrt{2} - 3\right )} \cosh \left (x\right )^{2} - 4 \,{\left (3 \, \sqrt{2} - 4\right )} \cosh \left (x\right ) \sinh \left (x\right ) + 3 \,{\left (2 \, \sqrt{2} - 3\right )} \sinh \left (x\right )^{2} + 2 \, \sqrt{2} - 3}{\cosh \left (x\right )^{2} + \sinh \left (x\right )^{2} + 3}\right ) + 8}{8 \,{\left (\cosh \left (x\right )^{2} + 2 \, \cosh \left (x\right ) \sinh \left (x\right ) + \sinh \left (x\right )^{2} - 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 3.71029, size = 75, normalized size = 3. \begin{align*} - \frac{\sqrt{2} \log{\left (4 \tanh ^{2}{\left (\frac{x}{2} \right )} - 4 \sqrt{2} \tanh{\left (\frac{x}{2} \right )} + 4 \right )}}{8} + \frac{\sqrt{2} \log{\left (4 \tanh ^{2}{\left (\frac{x}{2} \right )} + 4 \sqrt{2} \tanh{\left (\frac{x}{2} \right )} + 4 \right )}}{8} + \frac{\tanh{\left (\frac{x}{2} \right )}}{4} + \frac{1}{4 \tanh{\left (\frac{x}{2} \right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.24074, size = 58, normalized size = 2.32 \begin{align*} \frac{1}{8} \, \sqrt{2} \log \left (-\frac{2 \, \sqrt{2} - e^{\left (2 \, x\right )} - 3}{2 \, \sqrt{2} + e^{\left (2 \, x\right )} + 3}\right ) + \frac{1}{e^{\left (2 \, x\right )} - 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]